package com.beamfield.dao.steelplant;

import com.beamfield.model.SteelplantMonthDemandPlanDetail;
import com.beamfield.modelVo.SteelplantDemandPlanVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SteelplantMonthDemandPlanDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SteelplantMonthDemandPlanDetail record);

    int insertSelective(SteelplantMonthDemandPlanDetail record);

    SteelplantMonthDemandPlanDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SteelplantMonthDemandPlanDetail record);

    int updateByPrimaryKey(SteelplantMonthDemandPlanDetail record);

    List<SteelplantMonthDemandPlanDetail> selectByMonthId(Long monthId);

    List<SteelplantDemandPlanVO> selectPage(@Param("offset") String offset,@Param("limit") String limit,@Param("monthId") String monthId);

    long countPage(String monthId);

    Date selectEntryTime(@Param("monthId") String monthId, @Param("suppliesId") String suppliesId);

    int editDemandEntryTime(@Param("monthId") String monthId, @Param("suppliesId") String suppliesId, @Param("date") String date);

    List<SteelplantDemandPlanVO> selectBySuppliesId(@Param("monthId") String monthId, @Param("suppliesId") String suppliesId);

    int deleteByMonthDemandPlanId(Long id);
}
